
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <meta charset="UTF-8">
    <title>系统菜单管理</title>
    <%@include file="/WEB-INF/views/commons/commons.jsp"%>
    <script type="text/javascript" src="/static/js/system/menu.js"></script>
</head>
<body>

   <div id="menu_tree" class="easyui-layout" style="width:600px;height:400px;" fit="true">
      <div data-options="region:'west',title:'菜单表',split:true" style="width:300px;">
        <ui id="index_tree"></ui>
      </div>
    <div data-options="region:'center',title:'菜单操作'" style="padding:5px;background:#eee;">
        <table id="menu_datagrid"></table>
    </div>

</div>

<div id="tb">
    <a href="#" class="easyui-linkbutton" data-options="iconCls:'icon-add',plain:true" data-cmd="add">添加</a>
    <a href="#" class="easyui-linkbutton" data-options="iconCls:'icon-remove',plain:true" data-cmd="remove">删除</a>
    <a href="#" class="easyui-linkbutton" data-options="iconCls:'icon-reload',plain:true" data-cmd="reload">刷新</a>

</div>


<div id="menu_dialog">
    <form id="menu_form" method="post">
        <input type="hidden" id="menuId" name="id">
        <table align="center" style="margin-top: 15px">


            <tr>
                <td>菜单名</td>
                <td><input class="easyui-textbox" name="title" >
                </td>
            </tr>

            <tr>
                <td>URL</td>
                <td><input class="easyui-textbox" name="href" >
                </td>
            </tr>
            <tr>
                <td>父级菜单</td>
                <td><input class="easyui-combobox"  name="parent.id" data-options="
                valueField: 'id',textField: 'text', panelHeight:'auto',
                   url:'/menu/queryRootMenu'">
                </td>
            </tr>

        </table>
    </form>
</div>
 <div id="bb">
    <a href="#" class="easyui-linkbutton" iconCls="icon-save" data-cmd="save">保存</a>
    <a href="#" class="easyui-linkbutton" iconCls="icon-cancel" data-cmd="cancel">关闭</a>
</div>
</body>
</html>
